import { Template, defaultBuildLogger } from 'e2b'
import { template } from './template'

async function main() {
  await Template.build(template, {
    alias: '{{alias}}',
    {{#if cpuCount}}
    cpuCount: {{cpuCount}},
    {{/if}}
    {{#if memoryMB}}
    memoryMB: {{memoryMB}},
    {{/if}}
    onBuildLogs: defaultBuildLogger(),
  });
}

main().catch(console.error);
